//
//  MYNewsShopDetailsModel.m
//  MuYing
//
//  Created by tbb on 2020/3/6.
//  Copyright © 2020 TBB. All rights reserved.
//

#import "MYNewsShopDetailsModel.h"
#import "MYImageBaseModel.h"
@implementation MYNewsShopDetailsModel
+ (nullable NSDictionary<NSString *, id> *)modelContainerPropertyGenericClass {
    return @{@"standardList":[MYNewsShopDetailsStandardModel class],
             @"similarityProductList":[MYNewsShopDetailsProductModel class],
             @"commentList":[MYNewsShopDetailsCommentModel class],
             @"detailsImage":[MYImageBaseModel class]
    };
}
@end

@implementation MYNewsShopDetailsProductModel
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"Id"  : @"id"};
}

@end

@implementation MYNewsShopDetailsStandardModel
+ (nullable NSDictionary<NSString *, id> *)modelContainerPropertyGenericClass {
    return @{@"ticketList":[MYNewsShopDetailsStandardTicketModel class]
    };
}

+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"Id"  : @"id"};
}


@end

@implementation MYNewsShopDetailsCommentModel
-(NSString *)createTimeStr {
    if (!_createTimeStr) {
        _createTimeStr = [NSDate timeToDateStr:[self.createTime doubleValue]];
    }
    return _createTimeStr;
}
@end

@implementation MYNewsShopDetailsStandardTicketModel

+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"Id"  : @"id"};
}

@end
